package com.oocl.admin_platform.dao;

import java.util.List;

import com.oocl.admin_platform.pojo.Merchant;

public interface MerchantDao {
	/**
	 * 
	 * @param uname
	 * @return
	 */
	public Merchant findByuname(String uname);
	
	/**
	 * 
	 * @param status
	 * @return
	 */
	public List<Merchant> findByStatus(int status);
	
	
	/**
	 * 
	 * @return
	 */
	public List<Merchant>findAll();
	
	/**
	 * 
	 * @param merchant
	 * @return
	 */
	public boolean save(Merchant merchant);
	
	/**
	 * 
	 * @param merchant
	 * @return
	 */
	public boolean update(Merchant merchant);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public Merchant findById(String id);
	
}
